package com.cykj.mapper;

import com.cykj.entity.GoodsEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Mapper
@Repository
public interface GoodsMapper {
    List<GoodsEntity> findGoods(@Param(value = "name") String name,
                                @Param(value = "id") Integer id,
                                @Param(value = "pagestart")Integer pagestart,
                                @Param(value = "pagesize")Integer pagesize);

    int findCount(@Param(value = "name") String name,
                  @Param(value = "id") Integer id
                  );
}
